!#/bin/bash
cd /dev
#dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
dd if=/dev/zero of=/swapfile1 bs=1024 count=512k
mkswap /swapfile1
swapon /swapfile1
echo "/swapfile1 swap swap defaults 0 0" >>/etc/fstab
exit 0
